Fix tests and run tests on ci#61
Conversation
d29d9d0 to
64f8259
Compare
.github/workflows/build.yml
Outdated
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: '1.25' | ||
|
|
||
| - name: Run tests | ||
| run: make tests |
There was a problem hiding this comment.
Why not rather add (or perhaps even replace) the localstack branch inside the Run Integration Tests job?
lambda-runtime-init/.github/workflows/integ-tests.yml
Lines 3 to 6 in 5b81e4c
Seems there is a job there that will ensure the Go tests are run prior to running the int. tests:
lambda-runtime-init/.github/workflows/integ-tests.yml
Lines 8 to 16 in 5b81e4c
There was a problem hiding this comment.
Thanks for pointing this out, I had missed this integ-tests.yml file!
What I did is delete it, since:
- most jobs it contains are failing at the moment
- the job I added is about unit tests, whereas this workflow is called integ-tests
- I think it makes sense to always run the unit tests before attempting to build
There was a problem hiding this comment.
Gotcha. Can we keep the integration tests yaml, and just ensure it's skipped/never runs? I think in future, we should be running integration tests with upstream LocalStack IMO.
For example, we can build the go binary, upload it as a workflow artifact, and trigger some upstream LocalStack workflow that ensures we run the Lambda suite with this binary.
There was a problem hiding this comment.
I re-added the workflow but commented out the trigger: 87e9da4
I agree we should improve the testing there in the future.
gregfurman
left a comment
There was a problem hiding this comment.
LGTM! The CI on this repo needs some tlc, so thanks for taking the first step 🙂
I think we should invest some time in better integrating the RIE's CI with upstream LocalStack, but we can tackle this at some other point.
20ff173 to
87e9da4
Compare
Uh oh!
There was an error while loading. Please reload this page.